package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.SensitiveWordService;
import com.it.park.dao.SensitiveWordMapper;
import com.it.park.model.SensitiveWord;

@Service("sensitiveWordService")
public class SensitiveWordServiceImpl extends BaseServiceImpl<SensitiveWord> implements SensitiveWordService {
	
	@Autowired
	private SensitiveWordMapper sensitiveWordMapper;

	@Override
	public boolean insert(SensitiveWord SensitiveWord) {
		return sensitiveWordMapper.insert(SensitiveWord) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return sensitiveWordMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(SensitiveWord record) {
		return sensitiveWordMapper.insertSelective(record)==1;
	}
	@Override
	public SensitiveWord selectByPrimaryKey(Integer id) {
		return sensitiveWordMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(SensitiveWord record) {
		return sensitiveWordMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(SensitiveWord record) {
		return sensitiveWordMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<SensitiveWord> selectAll() {
		return sensitiveWordMapper.selectAll();
	}
	@Override
	public List<SensitiveWord> selectPagination(Map<String, Object> map) {
		return sensitiveWordMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return sensitiveWordMapper.selectTotal(map);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(SensitiveWord record) {
		return false;
	}
	@Override
	public List<SensitiveWord> selectPagination(SensitiveWord t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(SensitiveWord t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
